Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Summary

Shows immediate visual feedback in the sidebar when creating workspaces, instead of the UI appearing frozen during title generation (2-5s).

Changes

  • Type: Added status?: 'creating' field to WorkspaceMetadata for pending workspaces (ephemeral, not persisted)
  • Backend: Emits pending metadata immediately before slow AI title generation, clears on error
  • Helper: generatePlaceholderName() creates git-safe placeholder from user's message
  • Frontend: Shows shimmer on workspace name, disables selection/remove actions during creation

Flow

User sends message → Backend emits pending metadata immediately → 
Sidebar shows workspace with shimmer → AI generates title (2-5s) → 
Backend creates workspace → Backend emits final metadata → 
Sidebar updates to real name, removes shimmer

Generated with mux

@ammar-agent ammar-agent force-pushed the sidebar-pending-workspace-states branch from 3340f43 to e905c6a Compare November 25, 2025 02:00
- Add status?: 'creating' field to WorkspaceMetadata for pending workspaces
- Backend emits pending metadata immediately before slow AI title generation
- generatePlaceholderName() creates git-safe placeholder from user's message
- Frontend shows shimmer on workspace name during creation
- Disable selection/remove actions while workspace is being created
- Clear pending state on error by emitting null metadata

This provides immediate visual feedback when creating workspaces instead of
the UI appearing frozen during title generation (2-5s).
@ammar-agent ammar-agent force-pushed the sidebar-pending-workspace-states branch from e905c6a to fa2df24 Compare November 25, 2025 02:01
Extract buildSortedWorkspacesByProject utility to handle both persisted
and pending (status: creating) workspaces. Pending workspaces are now
displayed in the sidebar immediately when workspace creation starts,
rather than waiting for the config to be saved.

This fixes concurrent workspace creation where multiple workspaces
were being created simultaneously but only appeared after completion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant